package org.xqyy.eval.model;

import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import java.util.Date;
import javax.persistence.*;

@Table(name = "t_user")
public class TUser {
    @Id
    @KeySql(sql = "select uuid()", order = ORDER.BEFORE)
    private String id;

    private String username;

    @Column(name = "real_name")
    private String realName;

    private String cell;

    private String password;

    private String type;

    @Column(name = "dept_id")
    private String deptId;

    public TDept gettDept() {
        return tDept;
    }

    public void settDept(TDept tDept) {
        this.tDept = tDept;
    }

    @Transient
    private TDept tDept;

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    @Column(name = "register_date")
    private Date registerDate;

    @Column(name = "active_time")
    private Date activeTime;

    @Column(name = "dead_time")
    private Date deadTime;

    private String status;

    /**
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return real_name
     */
    public String getRealName() {
        return realName;
    }

    /**
     * @param realName
     */
    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**
     * @return cell
     */
    public String getCell() {
        return cell;
    }

    /**
     * @param cell
     */
    public void setCell(String cell) {
        this.cell = cell;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type
     */
    public void setType(String type) {
        this.type = type;
    }


    /**
     * @return register_date
     */
    public Date getRegisterDate() {
        return registerDate;
    }

    /**
     * @param registerDate
     */
    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    /**
     * @return active_time
     */
    public Date getActiveTime() {
        return activeTime;
    }

    /**
     * @param activeTime
     */
    public void setActiveTime(Date activeTime) {
        this.activeTime = activeTime;
    }

    /**
     * @return dead_time
     */
    public Date getDeadTime() {
        return deadTime;
    }

    /**
     * @param deadTime
     */
    public void setDeadTime(Date deadTime) {
        this.deadTime = deadTime;
    }

    /**
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }
}